/*
package com.demo.config;

import com.alibaba.fastjson.JSON;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import java.util.Map;

*/
/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2021/1/25 15:25
 *//*


*/
/**
 * MQ死信队列
 * 定义两个队列  A和B     A设置超时时间30分
 * A的未过期的消息路由到B中
 *
 *//*

@Configuration
public class MQConfig {

    @Autowired
    private Environment env;


    */
/**
     * 创建队列
     *//*

    @Bean
    public Queue orderQueue() {
    return  new Queue(env.getProperty(""));
    }

    */
/**
     * 创建交换机
     *//*

    @Bean
    public Exchange onExchange(){
        return new DirectExchange(env.getProperty(""),true,false);
    }


    */
/**
     * 队列和交换机进行绑定
     *//*

    @Bean
    public Binding orderQueueExchange( Queue orderQueue,Exchange onExchange){
       return BindingBuilder.bind(orderQueue).to(onExchange).with(env.getProperty("")).noargs();
    }
}

*/
